package com.pty.demo.structural.composite;

/**
 * @author pengty
 * @date 2020/3/12
 */
public abstract class AbstractCompanyComponent {

    protected String name;

    protected AbstractCompanyComponent(String name) {
        this.name = name;
    }

    public abstract void add(AbstractCompanyComponent component);

    public abstract void remove(AbstractCompanyComponent component);

    public abstract AbstractCompanyComponent getChildren(int depth);

    public abstract void operation();
}
